package edu.spec.lyq.week07.class1;

public class Chinese extends Human {
    // TODO 给language赋初值“普通话”
    private String language = "普通话";    // 语言

    // TODO 默认构造方法，方法里实现输出打印“我是中国人，我很自豪。”
    public Chinese(){
        System.out.println("我是中国人，我很自豪。");
    }
    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化
    public Chinese(String area,String mainFood,String skinColor,String language){
        super.setArea(area);
        super.setMainFood(mainFood);
        super.setSkinColor(skinColor);
        this.language = language;
    }
    // TODO language的getter和setter
    public String getLanguage()
    {
        return this.language;
    }
    public void setLanguage(String language)
    {
        this.language = language;
    }
    public void speak(){
        System.out.println("我说"+this.language);
    }
    public void printLanguage(){
        super.printLanguage();
        System.out.println("我说"+this.language);
    }
}
